﻿@model BoostSite.Demo.WebMvc.ViewModels.StartPageViewModel
@using BoostSite.Demo.Definitions.Templates
@using EPiBoost.Core.Model.TemplateParameters
@using EPiServer.Web.Mvc.Html
@{
	Layout = "/Views/Shared/_Layout1Column.cshtml";
	ViewBag.BodyClass = "start-page";

    var wrapperSettings = new WrapperSettings { Class = "block", AlternatingClass = "odd", Element = "span", FirstClass = "first", LastClass = "last", IndexFormat = "item-{0}", EnableInEditMode = false };
    var rowSettings = new RowSettings { ItemsPerRow = 3, Class = "row", AlternatingClass="alt",  Element = "div", FirstClass = "row-first", LastClass = "row-last", IndexFormat = "row-{0}", EnableInEditMode = false, WrapperFirstClass = "rowItem-first", WrapperLastClass = "rowItem-last", WrapperIndexFormat = "rowItem-{0}", WrapperAlternatingClass = "alt"};
    
}
 
<h1>@Html.PropertyFor(x => x.MainTitle)</h1> 
@Html.PropertyFor(x => x.MainIntro)
<div class="contentBlocks">
	@Html.PropertyFor(x => x.MainBlocks, new { wrapperSettings, rowSettings })
</div>

<div class="contentBlocks" style="clear:both; padding-top: 30px;">
	@{
        wrapperSettings.EnableInEditMode = true;
        rowSettings.EnableInEditMode = true;
    }
	@Html.PropertyFor(x => x.Pages, new { wrapperSettings, rowSettings })
</div>
<div class="pagination">
	@Html.DisplayFor(m=>Model.PaginationLinks) 
</div>